//
//  XLPasswordView.h
//  industry
//
//  Created by xl on 2020/12/28.
//  Copyright © 2020 Haier. All rights reserved.
//

#import "XLView.h"

@class XLPasswordView;

@protocol XLPasswordViewDelegate<NSObject>

-(void)passWordDidChange:(XLPasswordView *)password;

-(void)passWordCompleteInput:(XLPasswordView *)password;

-(void)passWordBeginInput:(XLPasswordView *)password;

@end

@interface XLPasswordView : XLView<UIKeyInput>

@property (nonatomic) NSInteger passWordNum;//密码的位数
@property (nonatomic) CGFloat squareWidth;//密码框的大小
@property (nonatomic) CGFloat pointRadius;//黑点半径
@property (nonatomic) UIColor *pointColor;//黑点颜色
@property (nonatomic) UIColor *rectColor;//边框颜色
@property (nonatomic) id<XLPasswordViewDelegate> delegate;//
@property (nonatomic,readonly,strong) NSMutableString *textStore;//保存密码的字符串


- (void)clearCurrentPassword;

@end
